'use strict';

const log = require('npmlog')
// 设置提示的等级
log.level = process.env.LOG_LEVEL ? process.env.LOG_LEVEL : 'info'
// 添加自定义命令
log.addLevel('success',2000,{fg:'green',bold:true})
// 自定义前缀
log.heading = 'xykj'

module.exports = log;
